<template>
	<div>
			<el-form-item v-if="$check_register_field('add','name_of_enterprise','/enterprise_user/view')" label="企业名称" prop="name_of_enterprise">
				<el-input id="name_of_enterprise" v-model="form['name_of_enterprise']" placeholder="请输入企业名称" ></el-input>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','type_of_enterprise','/enterprise_user/view')" label="企业类型" prop="type_of_enterprise">
				<el-input id="type_of_enterprise" v-model="form['type_of_enterprise']" placeholder="请输入企业类型" ></el-input>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','enterprise_address','/enterprise_user/view')" label="企业地址" prop="enterprise_address">
				<el-input id="enterprise_address" v-model="form['enterprise_address']" placeholder="请输入企业地址" ></el-input>
				</el-form-item>
	
	</div>
</template>

<script>
	import mixin from "@/mixins/component.js";

	export default {
		mixins: [mixin],
		props:{

			form:{
				type: Object,
				default: function(){
					return {
							"name_of_enterprise":  '' ,
								"type_of_enterprise":  '' ,
								"enterprise_address":  '' ,
						}
				}
			},

		},
		data() {
			return {
				field: "enterprise_user_id",
				url_add: "~/api/enterprise_user/add?",
				url_set: "~/api/enterprise_user/set?",
				url_upload: "~/api/enterprise_user/upload?",

										rules: {
					"name_of_enterprise": [    {required: true,message: '企业名称不能为空'},  ],
					"type_of_enterprise": [    {required: true,message: '企业类型不能为空'},  ],
					"enterprise_address": [    {required: true,message: '企业地址不能为空'},  ],
				}

			}
		},
		methods: {
	
	
		
	
		
	
			},
		created() {
								}
	}
</script>
